package com.team.employment.web.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.team.employment.model.entity.PositionLevel2;
import com.team.employment.web.admin.service.PositionLevel2Service;

import com.team.employment.web.admin.mapper.PositionLevel2Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 陈钰儿
* @description 针对表【position_level2(二级职位表)】的数据库操作Service实现
* @createDate 2025-04-11 15:49:26
*/
@Service
public class PositionLevel2ServiceImpl extends ServiceImpl<PositionLevel2Mapper, PositionLevel2>
    implements PositionLevel2Service{
    @Autowired
    private PositionLevel2Mapper positionLevel2Mapper;

    //根据id查找相应的二级职位
    @Override
    public List<PositionLevel2> getPositionLevel2(Integer positionInfoId) {
        return positionLevel2Mapper.getPositionLevel2(positionInfoId);
    }

    @Override
    public boolean deleteLevel2(Long id) {
        positionLevel2Mapper.deleteLevel2withLevel3(id);
        return true;
    }

}




